<#--  拿到主键类型 -->
package ${packageName}.service;

import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;
import ${packageName}.domain.${className};
import vip.liux.contracts.infrastructure.automap.MapMapper;
import vip.liux.contracts.infrastructure.automap.MapStructConfig;

import java.util.List;

@Mapper(config = MapStructConfig.class, uses = {MapMapper.class})
public interface AutoMapperProfile {

AutoMapperProfile INSTANCE = Mappers.getMapper(AutoMapperProfile.class);

${className} toEntity(Create${className}Dto source);

${className}Dto toDto(${className} source);

List
<${className}Dto> toDto(List<${className}> source);

    void toEntity(${className} source, @MappingTarget Update${className}Dto target);
    }
